var https = require('https');
var superagent = require('superagent');
let url = 'https://kyfw.12306.cn/otn/leftTicket/queryA?leftTicketDTO.train_date=2018-09-08&leftTicketDTO.from_station=HFH&leftTicketDTO.to_station=TJH&purpose_codes=ADULT';

superagent.get(url)
    .end(function(err,result){
        var x = result.text;
        console.log(x);
        console.log(result.statusCode)
    });